package com.flyinzhen.customer.repository;

import com.flyinzhen.customer.entity.CustContactInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface CustContactRepository extends JpaRepository<CustContactInfo, Integer> {

	Optional<CustContactInfo> findTopByCustId(String custId);

	List<CustContactInfo> findByCustId(String custId);
}